import { createStore, applyMiddleware, combineReducers } from 'redux'
import thunk from 'redux-thunk'
import { homeReducer } from '../views/Home/store'

const reducer = combineReducers({
    home: homeReducer
})

function createNewStore () {
    return createStore(reducer, applyMiddleware(thunk))
}

export {
    createNewStore,
    reducer
}
